<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>贡献排行管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/live/liveGoldContribution/">贡献排行列表</a></li>
		<%-- <shiro:hasPermission name="live:liveGoldContribution:edit"><li><a href="${ctx}/live/liveGoldContribution/form">贡献排行添加</a></li></shiro:hasPermission>
	 --%></ul>
	<form:form id="searchForm" modelAttribute="liveGoldContribution" action="${ctx}/live/liveGoldContribution/" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<ul class="ul-form">
			<li><label>接收者ID：</label>
				<form:input path="userId" htmlEscape="false" maxlength="32" class="input-medium"/>
				<%-- <sys:treeselect id="user" name="user.id" value="${liveGoldContribution.user.name}" labelName="user.name" labelValue="${liveGoldContribution.user.name}"
					title="用户" url="/sys/office/treeData?type=3" cssClass="input-small" allowClear="true" notAllowSelectParent="true"/> --%>
			</li>
			<li><label>贡献者ID：</label>
				<form:input path="createById" htmlEscape="false" maxlength="32" class="input-medium"/>
			</li>
			<li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></li>
			<li class="clearfix"></li>
		</ul>
	</form:form>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>接收者用户ID</th>
			<!-- 	<th>接收者名称</th> -->
				<th>贡献播豆数</th>
				<th>贡献者用户ID</th>
		<!-- 		<th>描述说明</th> -->
				<th>创建时间</th>
				<shiro:hasPermission name="live:liveGoldContribution:edit"><th>操作</th></shiro:hasPermission>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="liveGoldContribution">
			<tr>
				<td><a href="${ctx}/sys/user/form?id=${liveGoldContribution.userId}">
					${liveGoldContribution.userId}
				</a>
				</td>
			<%-- 	<td>${liveGoldContribution.user.name}</td> --%>
				<td>
					${liveGoldContribution.count}
				</td>
			
				<td>
				<a href="${ctx}/sys/user/form?id=${liveGoldContribution.createById}">
					${liveGoldContribution.createById}
				</a>
				</td>
			<%-- 	 <td>
					${liveGoldContribution.remarks}
				</td> --%>
				<td>
					<fmt:formatDate value="${liveGoldContribution.createDate}" pattern="yyyy-MM-dd HH:mm:ss"/>
				</td>
				<shiro:hasPermission name="live:liveGoldContribution:edit"><td>
    				<a href="${ctx}/live/liveGoldContribution/form?id=${liveGoldContribution.id}">修改</a>
					<a href="${ctx}/live/liveGoldContribution/delete?id=${liveGoldContribution.id}" onclick="return confirmx('确认要删除该贡献排行吗？', this.href)">删除</a>
				</td></shiro:hasPermission>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>